import ajax from '../utils/axios'

export async function create(params) {
  const res = await ajax.post(`/api/notice/create`, params)
  return res.data.data
}

export async function deleteNotice(ids) {
  const res = await ajax.post(`/api/notice/delete?ids=${ids}`)
  return res.data.data
}

export async function getNotice(params) {
  const res = await ajax.post(`/api/notice/list`, params)
  return res.data.data
}

export async function updateNotice(params) {
  const res = await ajax.post(`/api/notice/update`, params)
  return res.data.data
}
